package com.example.demo.test123;


import com.example.demo.mapper.UsertableZMapper;
import com.example.demo.mode1.Usertable;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@Controller
public class ZhuceController {
    @Resource
    private UsertableZMapper usertableZMapper;

    @RequestMapping("/zhuce")
    public String greetingForm() {
            return "index2";
    }
    @RequestMapping("/methods")
    public String demo(String username,String password) {
        boolean addusertable = usertableZMapper.addusertable(username, password);
        return "index";

    }



//    @PostMapping("/gr")
//    public String greetSubmit(@ModelAttribute Usertable usertable) {
//        return "test2";
//    }
}
